function setTitle(title) {
  document && (document.title = title)
}

function getTitle() {
  console.log(document ? document.title : '');
  return document ? document.title : ''
}

let documentTitle = getTitle()

///<reference types=""/>   // 命名空间的引入 